Skip to content

refactor: replace lint/fmt with unified vp check#135

Merged
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
fengmk2:refactor/vp-check
Feb 28, 2026
Merged

refactor: replace lint/fmt with unified vp check#135
fengmk2 merged 2 commits into
voidzero-dev:mainfrom
fengmk2:refactor/vp-check

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Feb 28, 2026

Summary

Following the pattern from voidzero-dev/setup-vp@9937ebf, replace separate lint/fmt scripts with unified vp check.

Changes

  • Replace lint, fmt, fmt:check scripts with check / check:fix
  • Update ready script: vite run check && vite run test && vite run build
  • Consolidate CI fmt:check + lint steps into single check step
  • Upgrade vite-plus from 0.0.0-ffb4d08a to 0.0.0-g61d318d2.20260227-0939

Lint fixes

New rules in the updated vite-plus caught two issues:

  • jsx-no-constructed-context-values: Wrap SidebarContext value in useMemo()
  • no-array-index-key: Use entry.name instead of array index for <Cell> keys in BundleSizeChart

Verification

  • vp check passes (0 warnings, 0 errors)
  • vp run ready — check + test + build all pass locally

- Replace separate lint, fmt, fmt:check scripts with unified check/check:fix
- Update CI to use single 'vp run check' step instead of separate fmt:check + lint
- Update ready script to use check instead of fmt + lint
- Upgrade vite-plus to 0.0.0-g61d318d2.20260227-0939
- Fix lint errors caught by new rules:
  - Wrap SidebarContext value in useMemo to prevent unnecessary rerenders
  - Use entry.name instead of array index for Cell keys in BundleSizeChart
- Add husky and lint-staged as devDependencies (catalog mode)
- Pre-commit hook runs 'vp check --fix' on staged files
- Covers all file types via wildcard glob
@fengmk2 fengmk2 merged commit 648916c into voidzero-dev:main Feb 28, 2026
3 checks passed
@fengmk2 fengmk2 deleted the refactor/vp-check branch February 28, 2026 17:10
fengmk2 added a commit that referenced this pull request Feb 28, 2026
The deploy workflow used `setup-node-pnpm` which doesn't provide the `vite`/`vp` binary, causing `vite: not found` on the `pnpm build` step after #135.

Fix: switch to `setup-vp` (matching ci.yml) and use `vp run @vibe/dashboard#build` directly.

Fixes https://github.com/voidzero-dev/vibe-dashboard/actions/runs/22525169259/job/65256003700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant